from jdbcdao.iconnection import Iconnect
import cx_Oracle

'''oracle 数据库连接的实现'''


class ORACLEConnection(Iconnect):

    def __init__(self, user, pwd, url):
        self.user = user
        self.pwd = pwd
        self.url = url

    def get_connect(self):
        conn = cx_Oracle.connect(self.user, self.pwd, self.url)
        print('oracle db is connect success')
        return conn




